package com.xjtu.mapper;

import com.xjtu.entity.Medication;
import com.xjtu.vo.medication.MedicationDetailVo;
import com.xjtu.vo.medication.MedicationVo;

import java.util.List;

/**
* @author 2070929887
* @description 针对表【medication】的数据库操作Mapper
* @createDate 2023-11-12 14:47:30
* @Entity com.xjtu.mapper.Medication
*/
public interface MedicationMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Medication record);

    int insertSelective(Medication record);

    Medication selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Medication record);

    int updateByPrimaryKey(Medication record);

    List<MedicationVo> getTodayFinish();

    List<MedicationVo> getToday(String elderlyName);

    List<MedicationDetailVo> getMedication(String elderlyName);

    List<MedicationDetailVo> getList();

    List<MedicationVo> getTodayList();

    int refreshRemain();
}
